import React from "react";
import {HashRouter as Router,Route,Switch} from "react-router-dom";
import {Provider} from "react-redux";
import store from "./redux";

import Login from "./container/Login";
import Dashboard from "./container/Dashboard";
import CheckLogin from "./component/checkLogin";





class App extends React.Component{
  constructor(props) {
    super(props);
    this.state={};
  }

  render() {
    return (
      (
        <Provider store={store}>
          <Router>
            <CheckLogin/>
            <Switch>
              <Route exact path="/login" component={Login}/>
              <Dashboard />
            </Switch>
          </Router>
        </Provider>
      )
    );
  }
}


export default App;
